<?php
/**
 * 插件相关
 *
 * PHP Version 5.6
 *
 * @category PHP
 * @package  Telegram\Events
 * @author   ctwj <908504609@qq.com>
 * @license  MIT https://github.com/ctwj/wechat_search/blob/master/LICENSE
 * @link     https://github.com/ctwj/wechat_search/
 * @date     2019-01-02 23:56:47
 * @modifyby ctwj
 */

 namespace Telegram\Events;

use Symfony\Component\EventDispatcher\Event;
use Telegram\Object\Resource;

class ResourceEvent extends Event
{
    const NAME = 'telegram.resource';

    protected $resource;

    public function __construct(Resource $resource)
    {
        $this->resource = $resource;
    }

    public function getResource()
    {
        return $this->resource;
    }
}
